﻿<%@ Page Language="C#" MasterPageFile="~/Template/ADMIN_QUANLY.Master" AutoEventWireup="true" CodeBehind="quanlygianhang.aspx.cs" Inherits="BTN04.ADMIN.quanlygianhang" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 54px;
        }
        .style3
        {
            width: 357px;
        }
        .style4
        {
            width: 320px;
        }
        .style5
        {
            width: 243px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

                        <table border="1" align="center" style="width: 647px">
        <tr>
            <td align="center" colspan="3" style="color:Green;font-weight:bold ">
                QUẢN LÝ LOẠI SẢN PHẨM<br />
                <br />
            </td>
        </tr>
        <tr>
            <td class="style3" style="color:Red;text-align:left ">
                Nhập Tên loại sản phẩm
            </td>
            <td class="style5" style="color:Red;text-align:left ">
                <asp:TextBox ID="txtTenLoaiSanPhamMoi" runat="server" style="margin-left: 0px" 
                    Width="253px"></asp:TextBox>
            </td>
            <td style="color:Red;text-align:left ">
                <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Thêm" 
                    Width="79px" />
            </td>
        </tr>
        <tr>
            <td class="style3" style="color:Red">
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="ThongBao1" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style7" colspan="3">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
                    onselectedindexchanged="ChonLoaiSanPham" PageSize="5" Width="600px">
                    <RowStyle ForeColor="#FF3399" />
                    <Columns>
                        <asp:BoundField DataField="MaLoaiSanPham" HeaderText="Mã Loại Sản Phẩm" 
                            SortExpression="MaLoaiSanPham" />
                        <asp:BoundField DataField="TenLoaiSanPham" HeaderText="Tên Loại Sản Phẩm" 
                            SortExpression="TenLoaiSanPham" />
                        <asp:BoundField DataField="TenTinhTrangLoaiSanPham" 
                            HeaderText="Tình Trạng Loại Sản Phẩm" 
                            SortExpression="TenTinhTrangLoaiSanPham" />
                        <asp:CommandField SelectText="Chọn" ShowSelectButton="True">
                            <ItemStyle ForeColor="#66FF33" HorizontalAlign="Center" />
                        </asp:CommandField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="Yellow" />
                    <EditRowStyle ForeColor="Yellow" />
                </asp:GridView>
                <br />
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="DanhSachChiTietLoaiSanPham" TypeName="BTN04.BUS.LoaiSanPhamBUS">
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td class="style10" colspan="3">
                <table align="center" style="color:Red">
                    <tr>
                        <td class="style16">
                            Mã loại sản phẩm</td>
                        <td class="style15">
                            <asp:TextBox ID="txtMaLoaiSP" runat="server" ReadOnly="True" Width="216px"></asp:TextBox>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style16">
                            Tên loại sản phẩm</td>
                        <td class="style15">
                            <asp:TextBox ID="txtTenLoaiSP" runat="server" style="margin-left: 0px" 
                                Width="214px"></asp:TextBox>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style16">
                            Tinh Trạng&nbsp; Loại Sản Phẩm</td>
                        <td class="style15">
                            <asp:DropDownList ID="drTinhTrangLSP" runat="server" AutoPostBack="True" 
                                style="margin-left: 0px; margin-bottom: 0px" Width="132px">
                            </asp:DropDownList>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style15">
                            <asp:Button ID="btnCapNhat" runat="server" onclick="btnCapNhat_Click" 
                                Text="Cập Nhật" />
                            &nbsp;&nbsp;
                            <asp:Button ID="btnXoa" runat="server" onclick="btnXoa_Click" Text="Xóa" 
                                Width="69px" />
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style15">
                <asp:Label ID="ThongBao2" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" class="style10" colspan="3">
                &nbsp;</td>
        </tr>
    </table>
    <br />
                        	  
</asp:Content>

